//
//  ICGHelper.cpp
//  lnnipad
//
//  Created by Wu Wang on 11-11-22.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#ifndef IGCHELPER_H_2011122
#define IGCHELPER_H_2011122

const int ID_MAX_LENGTH = 32;
class CGCMatchDelegate
{
public:
    virtual void MatchStarted() {}
    virtual void MatchEnded()   {}
    virtual void ReceivedData(const void *playerID, const void *data, unsigned long dataLen) {}
};

void GCInit();
bool GCIsAuthenticated();
bool GCGetLocalPlayerID(char *outID);
bool GCGetDeviceID(char *outID);
void GCShowLeaderBoard();
void GCReportGameScore(unsigned long score);
void GCFindPlayer(int minPlayer, int maxPlayer, CGCMatchDelegate *pMatchDelegate);
bool GCSendMatchData(const char *data);

#endif
